i want to add image inside a span here's what i tried (inside a form i added this script):
function addSelected(){
var content="
";
var span = document.getElementById("members");
span.innerHTML=content;
}
but it always gives me the error:
unterminated string literal
on this line:
var content="
";
because it's translated by browser to something like (found that by firebug):
var content="
";
this is tested on firefox 8.
JavaScript questions and answers, JavaScript questions pdf, JavaScript question bank, JavaScript questions and answers pdf, mcq on JavaScript pdf, JavaScript questions and solutions, JavaScript mcq Test , Interview JavaScript questions, JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)